home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Medabots Cardz
/
Medabots CD Cardz Rokusho.bin
/
pc
/
assets
/
constructrokusho.swf
/
scripts
/
DefineSprite_147
/
frame_8
/
DoAction.as
Wrap
Text File
|
2001-11-29
|
882b
|
39 lines
xpart = "206";
ypart = "286";
x = getProperty("/metabee legs", _X);
y = getProperty("/metabee legs", _Y);
if(xpart + "5" < x)
{
tellTarget("/")
{
setProperty("/metabee legs", _X, getProperty("/metabee legs", _X) - "8");
}
}
if(x < xpart - "5")
{
tellTarget("/")
{
setProperty("/metabee legs", _X, getProperty("/metabee legs", _X) + "8");
}
}
if(ypart + "5" < y)
{
tellTarget("/")
{
setProperty("/metabee legs", _Y, getProperty("/metabee legs", _Y) - "8");
}
}
if(y < ypart - "5")
{
tellTarget("/")
{
setProperty("/metabee legs", _Y, getProperty("/metabee legs", _Y) + "8");
}
}
if(xpart - "6" < x and x < xpart + "6" and ypart - "6" < y and y < ypart + "6")
{
setProperty("/metabee legs button", _visible, "1");
setProperty("/metabee legs", _visible, "0");
gotoAndStop(1);
}